/**
 * 
 */
package belote.model.utilisateur;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * @author Gwenn
 *
 */
public class Utilisateur {

	// -------------------------------------------------------------- Attributs
	
	private long id;
	
	private String login;
	
	private String password;
	
	private String mail;
	
	// ----------------------------------------------------------- Constructeur
	
	public Utilisateur() {
	}
	
	// ----------------------------------------------------- Methodes publiques
	
	@Override
	public String toString() {
		
		ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
		tsb.append("id", getId());
		tsb.append("login", getLogin());
		tsb.append("mail", getMail());
		return tsb.toString();
	}
	
	// ------------------------------------------------------ Getters & Setters
	
	public void setId(long id) {
		this.id = id;
	}
	
	public long getId() {
		return id;
	}
	
	public void setLogin(String login) {
		this.login = login;
	}
	
	public String getLogin() {
		return login;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setMail(String mail) {
		this.mail = mail;
	}
	
	public String getMail() {
		return mail;
	}
}
